37a7f60329f47fc7e4129456880a4654fc035c05,enabler/src/de/schildbach/pte/BvgProvider.java,BvgProvider,newLine,#Product#String#String#Attr#,127

Before Change


        if (product == Product.SUBURBAN_TRAIN && "S41".equals(normalizedName))
            return super.newLine(product, normalizedName, comment, concatAttrs(attrs, Attr.CIRCLE_CLOCKWISE));
        if (product == Product.SUBURBAN_TRAIN && "S42".equals(normalizedName))
            return super.newLine(product, normalizedName, comment, concatAttrs(attrs, Attr.CIRCLE_ANTICLOCKWISE));

        if (product == Product.BUS && "S41".equals(normalizedName))
            return super.newLine(product, normalizedName, comment,
                    concatAttrs(attrs, Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_CLOCKWISE));
        if (product == Product.BUS && "S42".equals(normalizedName))
            return super.newLine(product, normalizedName, comment,
                    concatAttrs(attrs, Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_ANTICLOCKWISE));

        if (product == Product.BUS && "TXL".equals(normalizedName))
            return super.newLine(product, normalizedName, comment, concatAttrs(attrs, Attr.LINE_AIRPORT));
        if (product == Product.SUBURBAN_TRAIN && "S9".equals(normalizedName))
            return super.newLine(product, normalizedName, comment, concatAttrs(attrs, Attr.LINE_AIRPORT));
        if (product == Product.SUBURBAN_TRAIN && "S45".equals(normalizedName))
            return super.newLine(product, normalizedName, comment, concatAttrs(attrs, Attr.LINE_AIRPORT));

        return super.newLine(product, normalizedName, comment, attrs);
    }

After Change


    }

    @Override
    protected Line newLine(final String operator, final Product product, final String name) {
        if (product == Product.SUBURBAN_TRAIN && "S41".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.CIRCLE_CLOCKWISE));
        if (product == Product.SUBURBAN_TRAIN && "S42".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.CIRCLE_ANTICLOCKWISE));

        if (product == Product.BUS && "S41".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_CLOCKWISE));
        if (product == Product.BUS && "S42".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.SERVICE_REPLACEMENT, Attr.CIRCLE_ANTICLOCKWISE));

        if (product == Product.BUS && "TXL".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.LINE_AIRPORT));
        if (product == Product.SUBURBAN_TRAIN && "S9".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.LINE_AIRPORT));
        if (product == Product.SUBURBAN_TRAIN && "S45".equals(name))
            return new Line(null, operator, product, name, lineStyle(operator, product, name),
                    Sets.newHashSet(Attr.LINE_AIRPORT));

        return super.newLine(operator, product, name);
    }